package org.example.repository;

import org.example.model.User;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * @author huangy
 * @description
 * @since 2023/2/23 20:35
 **/
public interface UserRepository extends ElasticsearchRepository<User, Long> {

    User findById(long id);

    List<User> findByName(String name);
}
